package consulTest.GateWayLog;

import lombok.Data;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;


@Data
public class LogDTO {

    private RequestLog requestLog;

    private ResponseLog responseLog;

    private Integer timeTaken;


    @Data
    public static class RequestLog {

        private String requestUrl;

        private HttpMethod requestMethod;

        private HttpHeaders requestHeaders;

        private String requestBody;

        private String requestIp;
    }

    @Data
    public static class ResponseLog {

        private HttpStatus status;

        private HttpHeaders responseHeaders;

        private String responseBody;

    }

}
